/********************************************************
 *
 *  THIS IS EXPERIMENTAL CODE 
 * 
 ********************************************************/
package edu.moravian.entity;

import edu.moravian.math.Point2D;
import java.awt.geom.Line2D;



/**
 *
 *
 * @author ronaghan
 */
public class WallEntity 
{
 
    private Point2D start;
    private Point2D end;
    private Line2D line;
    
    public WallEntity(Point2D start, Point2D end)
    {
        this.start = start;
        this.end = end;
    }
    
    
    public boolean isVertical()
    {
       
        
        if(start.getX() == end.getX())
        {
            return true;
        }
        else
        {
            return false;
        }
            
            
    }
    
    public boolean isHorizontal()
    {
        if(start.getY() == end.getY())
        {
            return true;
        }
        else
        {
            return false;
        }
                    
    }
    
    
    
   
    
    public Point2D getStart()
    {
        return start;
    }
    
    public Point2D getEnd()
    {
        return end;
    }
    
    
   
    
}



